import routes, {Route} from './config';

export default (routePath:string): Route => (
    routes.find(({path}) => path === routePath) as Route
)